<?php

class Test
{
    public static function show($something,$option=false)
    {
        echo '<pre>';
        if($option) var_dump($something);
        else print_r($something);
        Yii::app()->end('</pre>');
    }
}